<?php 
/** 
 * Smarty plugin 
 * @package Smarty 
 * @subpackage plugins 
 */ 

/** 
* Smarty function plugin 
* Requires PHP >= 4.3.0 
* ------------------------------------------------------------- 
* Type:     function 
* Name:     ckeditor 
* Version:  0.9 
* Author:   cezaryece based on plugin for fckeditor by gazoot (gazoot care of gmail dot com) 
* Purpose:  Creates a CKeditor, a very powerful textarea replacement. 
* ------------------------------------------------------------- 
* @param InstanceName Editor instance name (form field name) [ plugin has feature of multiply instances of CKEditor, but not tested yet] 
* @param BasePath optional Path to the FCKeditor directory. Need only be set once on page. Default: /FCKeditor/ 
* @param Value optional data that control will start with, default is taken from the javascript file 
* 
* params from CKEDITOR.config fields list 
* @param width optional width (css units) 
* @param height optional height (css units) 
* @param toolbar optional what toolbar to use from configuration 
* 
*/ 
function smarty_function_ckeditor($params, &$smarty) { 
	return fckeditor($params);
} 
?>